/**
 * 
 */
package vue.globalBar;

import java.awt.Color;

import javax.swing.BorderFactory;
import javax.swing.JPanel;

/**
 * An Item in the Global bar.
 * 
 * @author GRONOWSKI Stephane svan001@aol.com
 * 
 *         igsat 2010
 * 
 */
public class IGGlobalBarItem extends JPanel {

	private static final long	serialVersionUID	= 1L;
	protected boolean			selected;

	public IGGlobalBarItem() {
		setSelected(false);
	}

	/**
	 * Return if the item is selected.
	 * 
	 * @return if the item is selected.
	 */
	public boolean getSelected() {
		return selected;
	}

	/**
	 * Set if the item is selected.
	 * 
	 * @param selected
	 *            the status
	 */
	public void setSelected(boolean selected) {
		this.selected = selected;
		if (selected)
			setBorder(BorderFactory.createLineBorder(Color.GREEN));
		else
			setBorder(BorderFactory.createLineBorder(Color.BLACK));
	}


}
